package com.chenfan.mcn.model.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Map;

/**
 * 审批流程DTO
 * @author wulg
 * @date 2023/3/27
 */
@Data
public class ChangeApprovalDTO implements Serializable {

    private static final long serialVersionUID = 2533503114142820037L;

    /**
     * 流程实例ID
     */
    @NotNull(message = "流程实例ID不能为空")
    private Long approvalId;

    /**
     * 审批结果（注意：正确标记-true/false)
     */
    @NotNull(message = "审批结果标记不能为空")
    private Boolean approvalFlag;

    /**
     * 审批意见
     */
    @Length(max = 512, message = "审批意见长度不能超过{max}")
    private String remark;

    /**
     * 审批参数
     */
    private Map<String, Object> paramMap;
}
